import java.util.PriorityQueue;

public class Demo12 {
	public static void main(String[] args) {
		int[] nums={1,8,7,9,45,10,21,44,77};
		PriorityQueue<Integer> queue=new PriorityQueue<>((o1,o2)->{
			return o2.compareTo(o1);
		});
		for (int i = 0; i < nums.length; i++) {
			queue.offer(nums[i]);
		}
		System.out.println("++++++++++++++");
	}
}
